package com.maas.util.mybatis.jpa.littlenb.common.db;

/**
 * 数据库中间件工具
 * @author viaco
 */
public class JbaDbPluginTools {
    /**
     * 是否为kingbase
     *判断是否为 kingbase
     * @param args
     */
    public static boolean isKingbase() {
        if(JbaDbPluginConst.DIALECT_CURR.equals(JbaDbPluginConst.DIALECT_KINGBASE)|| JbaDbPluginConst.DIALECT_CURR.equals(JbaDbPluginConst.DIALECT_KINGBASE_V8)){
            return true;
        }
        return false;
    }

    /**
     * 是否为kingbase v7
     *判断是否为 kingbase
     * @param args
     */
    public static boolean isKingbaseV7() {
        if(JbaDbPluginConst.DIALECT_CURR.equals(JbaDbPluginConst.DIALECT_KINGBASE)){
            return true;
        }
        return false;
    }

    /**
     * 是否为kingbase v8
     *判断是否为 kingbase
     * @param args
     */
    public static boolean isKingbaseV8() {
        if(JbaDbPluginConst.DIALECT_CURR.equals(JbaDbPluginConst.DIALECT_KINGBASE_V8)){
            return true;
        }
        return false;
    }

}
